const FontSizeKey = 'FontSize'

export function getFontSize() {
    return localStorage.getItem(FontSizeKey)
}

export function setFontSize(FontSize) {
    return localStorage.setItem(FontSizeKey, FontSize)
}

export function removeFontSize() {
    return localStorage.removeItem(FontSizeKey)
}

const LanguageKey = 'Language'

export function getLanguage() {
    return localStorage.getItem(LanguageKey)
}

export function setLanguage(Language) {
    return localStorage.setItem(LanguageKey, Language)
}

export function removeLanguage() {
    return localStorage.removeItem(LanguageKey)
}


const TokenKey = 'Token'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}


const UserInfoKey = 'UserInfo'

export function getUserInfo() {
    return localStorage.getItem(UserInfoKey) ? JSON.parse(localStorage.getItem(UserInfoKey)) : {}
}

export function setUserInfo(UserInfo) {
    return localStorage.setItem(UserInfoKey, JSON.stringify(UserInfo))
}

export function removeUserInfo() {
    return localStorage.removeItem(UserInfoKey)
}
